<template>
  <div>
    <el-dialog title="恢复" class="gl_dialog_TitleLine gl_dl_footer" :visible.sync="dialogVisible" :close-on-click-modal="false" width="632px" top="25vh">
      <span style="margin-right:14px">恢复位置:</span>
      <el-radio v-model="radio" label="OnShelf">销售中</el-radio>
      <el-radio v-model="radio" label="InStorage">仓库中</el-radio>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" size="mini" @click="clickAdd">保 存</el-button>
        <el-button type="primary" size="mini" @click="clickCancel">取 消</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      radio: 'InStorage',
      loading: false,
      dialogVisible: false
    };
  },
  methods: {
    clickCancel() {
      this.dialogVisible = false;
    },
    clickAdd() {
      this.dialogVisible = false;
      this.$emit('statuscode', this.radio);
    }
  }
};
</script>
<style lang="scss" scoped>
.el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>
